<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.qiqianyi.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\company\validate;

use think\Validate;

class MemberValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'id_card' => 'require',
        'category_id' => 'require',
        'breed_status_id' => 'require',
        'relation_category_id' => 'require',
        'group_id' =>  'require',
        'company_id' =>  'require',

    ];
    protected $message = [
        'name.require' => '姓名不能为空',
        'id_card.require'  => '身份证号不能为空',
        'category_id.require' => '分类不能为空',
        'breed_status_id.require' => '孕育状态不能为空',
        'relation_category_id.require' => '关系不能为空',
        'group_id.require' => '所属群不能为空',
        'company_id.require' => '所属企业不能为空',
    ];

}